package com.jinduplan.planmanager.mvp.model

import com.cxz.kotlin.baselibs.mvp.BaseModel
import com.cxz.kotlin.baselibs.utils.GsonHelper
import com.jinduplan.planmanager.bean.*
import com.jinduplan.planmanager.http.MainRetrofit
import com.jinduplan.planmanager.mvp.contract.MainContract
import com.jinduplan.planmanager.mvp.contract.ProjectContract
import com.jinduplan.planmanager.mvp.contract.ProjectUploadContract
import io.reactivex.rxjava3.core.Observable

/**
 * @author admin
 * @date 2018/11/20
 * @desc
 */
class ProjectUploadModel : BaseModel(), ProjectUploadContract.Model {
    override fun getProjectList(page: Int, limit: Int): Observable<HttpResult<ProjectListBean>> {
        val map = HashMap<String,Int>()
        map["page"] = page
        map["limit"] = limit
//        map["project_id"]=1
        return MainRetrofit.service.getProjectUploadList(GsonHelper.getRequestIntBoby(map))
    }


}